package com.ruibang.glass.produce.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruibang.glass.produce.entity.Hot2StatisticalReport;
import com.teaming.cloud.framework2.autoconfigure.dynamic.datasource.annotation.DS;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface Hot2StatisticalReportMapper extends BaseMapper<Hot2StatisticalReport> {

    @DS("hot2_bc2mes")
    Hot2StatisticalReport getMesDetailData(@Param("startTs") String startTs, @Param("endTs") String endTs);

    List<Hot2StatisticalReport> getByDate(@Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime);
}
